import { ResPage, User } from "@/api/interface/index";
import { USER_COURSE } from "@/api/config/servicePort";
import http from "@/api";

/**
 * @name 用户管理模块
 */

export const getUserCourseListApi = (params: any) => {
  return http.post(USER_COURSE + `/list`, params);
};

export const addUserCourseApi = (params: any) => {
  return http.post(USER_COURSE + "/add", params);
};

export const updateUserCourseApi = (params: any) => {
  return http.post(USER_COURSE + "/update", params);
};

export const deleteUserCourseApi = (params: any) => {
  return http.post(USER_COURSE + "/delete", params);
};
